[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              Compiler Directives 
                              General Description 

  DECLARATION:  {$Directive [Value]}

      PURPOSE:  Enables control of compiler features and process

      REMARKS:  The Compiler Directives are comments with special syntax,
                and can be inserted into your source code in any place that
                you could insert a comment.  The same features can also be
                controlled within the menus of the Integrated Development
                Environment.  They can be found in the Options menu, if the
                Compiler submenu.

                There are three types of directives: Switch, Conditional,
                and Parameter.  Switch directives toggle compiler features
                between two states; Parameter directives pass information
                that affects compilation such as memory allocation; and
                Conditional directives affect compilation based on user
                supplied conditional symbols.


  Switch Directives 

  {$A+} / {$A-}     Switches between Word and Byte alignment of variables
  {$B+} / {$B-}     Enables/Disables Boolean `Short Circuit' Evaluation
  {$D+} / {$D-}     Enables/Disables generation of debug information
  {$E+} / {$E-}     Enables/Disables 8087 Emulation routines
  {$F+} / {$F-}     Forces/Does not force Far Calls
  {$I+} / {$I-}     Enables/Disables I/O checking
  {$L+} / {$L-}     Enables/Disables generation of local symbols
  {$N+} / {$N-}     Enables/Disables use of the 8087 math chip
  {$O+} / {$O-}     Enables/Disables overlay code generation
  {$R+} / {$R-}     Enables/Disables code generation for range checking
  {$S+} / {$S-}     Enables/Disables stack overflow checking
  {$V+} / {$V-}     Enables/Disables variable parameter string checking


  Parameter Directives 

  {$I FileName}                   Includes external files when compiling
  {$L FileName}                   Link the file being compiled with FileName
  {$M StackSize,HeapMin,HeapMax}  Specifies memory allocation parameters
  {$O UnitName}                   Transforms a Unit into an overlay


  Conditional Compilation Directives 

  {$DEFINE name}      Defines a conditional symbol with the given name
  {$UNDEF name}       Undefines a conditional symbol with the given name
  {$IFDEF name}       Compile following source if symbol is defined
  {$IFNDEF name}      Compile following source if symbol is not defined
  {$IFOPT switch}     Compile following source if switch is in the
                      specified state
  {$ELSE}             Switches between compiling/ignoring source contained
                      within the {$IFxxx} and the next {$ENDIF} directives
  {$ENDIF}            Terminates the conditional compile started by the
                      last {$IFxxx} directive

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson